import Taro from "@tarojs/taro";
import { ACCESSTOKEN } from "./constant";

export default {
  get: () => `Bearer ${Taro.getStorageSync(ACCESSTOKEN)}`,
  set: (payload: string) => Taro.setStorageSync(ACCESSTOKEN, payload),
  clear: () => Taro.removeStorageSync(ACCESSTOKEN),
};
